CMSC 425 : Lecture 7 Geometric Programming : Sample Solutions

نویسنده

  • Dave Mount
چکیده

Problem: You have been asked to implement a new weapon that behaves something like a shot gun. It has a wide ange of effectiveness, but it is only effective at relatively small distances. Suppose that the end of the muzzle of the gun is located at a point p (in 3-dimensional space), and it has been aimed at a target point t (see Fig. 1(a)). The gun shoots a spray of pellets within angle θ the central axis between p and t, but bullets are only effective up to a distance of r from the end of the muzzle. (Let’s assume that θ is given in degrees and is strictly smaller than 90◦.) Given a point q, write a procedure to determine whether the point q will be hit when the gun is fired.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

CMSC 425 : Lecture 7 Geometric Programming : Sample Solutions

Problem: You have been asked to implement a new weapon that behaves something like a shot gun. It has a wide ange of effectiveness, but it is only effective at relatively small distances. Suppose that the end of the muzzle of the gun is located at a point p (in 3-dimensional space), and it has been aimed at a target point t (see Fig. 1(a)). The gun shoots a spray of pellets within angle θ the c...

متن کامل

CMSC 425 Dave Mount CMSC 425 : Lecture 4 Geometry and Geometric Programming

Such basic geometric problems are fundamental to computer graphics, and over the next few lectures, our goal will be to present the tools needed to answer these sorts of questions. (By the way, a good source of information on how to solve these problems is the series of books entitled “Graphics Gems”. Each book is a collection of many simple graphics problems and provides algorithms for solving...

متن کامل

CMSC 425 Game Programming

1 Copyright, David M. Mount, 2016, Dept. of Computer Science, University of Maryland, College Park, MD, 20742. These lecture notes were prepared by David Mount for the course CMSC 425, Game Programming, at the University of Maryland. Permission to use, copy, modify, and distribute these notes for educational purposes and without fee is hereby granted, provided that this copyright notice appear ...

متن کامل

CMSC 425 Game Programming 1

1Copyright, David M. Mount, 2013, Dept. of Computer Science, University of Maryland, College Park, MD, 20742. These lecture notes were prepared by David Mount for the course CMSC 425, Game Programming, at the University of Maryland. Permission to use, copy, modify, and distribute these notes for educational purposes and without fee is hereby granted, provided that this copyright notice appear i...

متن کامل

Mount CMSC 425 : Lecture 7 Geometric Programming : Sample Solutions

Problem: You are working on a platformer game that takes place in a 2-dimensional space. The hero of your game has a gun that shoots a laser beam. This beam can bounce off of special objects (mirrors) in your environment. For inexperienced users, you provide a mode that will automatically aim the gun to hit a given target by bouncing it off one of these mirrors. More formally, let a and b be tw...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017